package com.student_dorm.pojo;

import java.util.Date;

public class News {
    private Integer id;
    private String newId;
    private String newTitle;
    private String newContent;
    private String newAdmin;
    private Date newTime;

    public News(Integer id, String newId, String newTitle, String newContent, String newAdmin, Date newTime) {
        this.id = id;
        this.newId = newId;
        this.newTitle = newTitle;
        this.newContent = newContent;
        this.newAdmin = newAdmin;
        this.newTime = newTime;
    }

    public News() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNewId() {
        return newId;
    }

    public void setNewId(String newId) {
        this.newId = newId == null ? null : newId.trim();
    }

    public String getNewTitle() {
        return newTitle;
    }

    public void setNewTitle(String newTitle) {
        this.newTitle = newTitle == null ? null : newTitle.trim();
    }

    public String getNewContent() {
        return newContent;
    }

    public void setNewContent(String newContent) {
        this.newContent = newContent == null ? null : newContent.trim();
    }

    public String getNewAdmin() {
        return newAdmin;
    }

    public void setNewAdmin(String newAdmin) {
        this.newAdmin = newAdmin == null ? null : newAdmin.trim();
    }

    public Date getNewTime() {
        return newTime;
    }

    public void setNewTime(Date newTime) {
        this.newTime = newTime;
    }
}